home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-02-08 | 2.2 KB | 70 lines | [TEXT/R*ch] |
- #!/bin/sh
-
- # A shell script that does a partial conversion of 5.x period files
- # into 7.x game files.
-
- sed -f per.sed.first $1 >$1.tmp1
-
- # Translate global variables into their modern equivalents.
-
- rm -r tmp.sed
- touch tmp.sed
- xform-var edge-terrain edge-terrain >>tmp.sed
- xform-var country-size country-radius-min >>tmp.sed
- xform-var country-min-distance country-separation-min >>tmp.sed
- xform-var country-max-distance country-separation-max >>tmp.sed
- xform-var all-seen see-all >>tmp.sed
- sed -f tmp.sed $1.tmp1 >$1.tmp2
-
- # Transform unit properties into their modern equivalents.
-
- rm -r tmp.sed
- touch tmp.sed
- xform-prop always-seen see-always >>tmp.sed
- xform-prop hold-volume capacity >>tmp.sed
- xform-prop hp hp-max >>tmp.sed
- xform-prop in-country start-with >>tmp.sed
- xform-prop max-alt alt-percentile-max >>tmp.sed
- xform-prop min-alt alt-percentile-min >>tmp.sed
- xform-prop max-wet wet-percentile-max >>tmp.sed
- xform-prop min-wet wet-percentile-min >>tmp.sed
- xform-prop neutral can-be-independent >>tmp.sed
- xform-prop revolt revolt-chance >>tmp.sed
- xform-prop see-range vision-range >>tmp.sed
- xform-prop territory point-value >>tmp.sed
- sed -f tmp.sed $1.tmp2 >$1.tmp3
-
- # Transform tables into their modern equivalents.
-
- rm -r tmp.sed
- touch tmp.sed
- xform-table alter-mobility mp-per-occupant >>tmp.sed
- xform-table attrition attrition >>tmp.sed
- xform-table capture capture-chance >>tmp.sed
- xform-table consume base-consumption >>tmp.sed
- xform-table damage damage >>tmp.sed
- xform-table disaster accident-vanish-chance >>tmp.sed
- xform-table favored favored-terrain >>tmp.sed
- xform-table guard hp-to-garrison >>tmp.sed
- xform-table hit hit-chance >>tmp.sed
- xform-table hit-by hit-by >>tmp.sed
- xform-table hits-with hits-with >>tmp.sed
- xform-table in-length in-length >>tmp.sed
- xform-table out-length out-length >>tmp.sed
- xform-table produce base-production >>tmp.sed
- xform-table productivity productivity >>tmp.sed
- xform-table storage storage-x >>tmp.sed
- xform-table to-move consumption-per-move >>tmp.sed
- sed -f tmp.sed $1.tmp3 >$1.tmp4
-
- # var-to-uprop known-radius initial-seen-radius >>tmp.sed
- # uprop-to-table surrender surrender-chance >>tmp.sed
- # uprop-to-table visibility visibility >>tmp.sed
-
- sed -f per.sed.last $1.tmp4
-
- #rm -f tmp.sed $1.tmp*
-
-
-
-